import java.util.Scanner;

public class demo04 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入网购金额：");
        double a = scanner.nextDouble();
        System.out.println("请输入客户和发货点之间的距离（公里数）：");
        double b = scanner.nextDouble();
        if (b<=10){
            System.out.println("需缴纳金额为："+(a+10));
        }else if (b<=50){
            System.out.println("需缴纳金额为："+(a+50));
        }else if (b<=100){
            System.out.println("需缴纳金额为："+(a+100));
        }else if (b>100){
            System.out.println("需缴纳金额为："+(a+200));
        }
    }
}
